all: rational

rational: main.o rational.o
	g++ main.o rational.o -o rational

main.o: main.cpp
	g++ -c main.cpp

rational.o: rational.cpp rational.h
	g++ -c rational.cpp

clean:
	rm -rf *o rational
